﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class trangchu : System.Web.UI.MasterPage
{
    Service sv = new Service();
    protected void Page_Load(object sender, EventArgs e)
    {
        string sql="select * from tintuc";
        rp_tintuc.DataSource = sv.GetDataTable(sql);
        rp_tintuc.DataBind();
        sql="select * from loaiphong";
        drl_loaiphong.DataSource = sv.GetDataTable(sql);
        drl_loaiphong.DataValueField = "maloai";
        drl_loaiphong.DataTextField = "tenloai";
        drl_loaiphong.DataBind();
    }
}
